.class final Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler$buyRemoveAds$1;
.super Lkotlin/jvm/internal/Lambda;
.source "NavigatorBillingHandler.kt"

# interfaces
.implements Lkotlin/jvm/functions/Function0;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;->buyRemoveAds()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x18
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lkotlin/jvm/internal/Lambda;",
        "Lkotlin/jvm/functions/Function0<",
        "Lkotlin/Unit;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;)V
    .locals 0

    iput-object p1, p0, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler$buyRemoveAds$1;->this$0:Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;

    const/4 p1, 0x0

    invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V

    return-void
.end method


# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
    .locals 1

    .line 13
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler$buyRemoveAds$1;->invoke()V

    sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;

    return-object v0
.end method

.method public final invoke()V
    .locals 4

    .line 119
    sget-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED_SELECTED_SKU:Llt/minvib/magicpreferences/MagicStringPreference;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler$buyRemoveAds$1;->this$0:Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;->getActivity()Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/minvib/magicpreferences/MagicStringPreference;->get(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 120
    invoke-static {}, Lcom/android/billingclient/api/BillingFlowParams;->newBuilder()Lcom/android/billingclient/api/BillingFlowParams$Builder;

    move-result-object v1

    .line 121
    invoke-virtual {v1, v0}, Lcom/android/billingclient/api/BillingFlowParams$Builder;->setSku(Ljava/lang/String;)Lcom/android/billingclient/api/BillingFlowParams$Builder;

    const-string v2, "inapp"

    .line 122
    invoke-virtual {v1, v2}, Lcom/android/billingclient/api/BillingFlowParams$Builder;->setType(Ljava/lang/String;)Lcom/android/billingclient/api/BillingFlowParams$Builder;

    .line 123
    invoke-virtual {v1}, Lcom/android/billingclient/api/BillingFlowParams$Builder;->build()Lcom/android/billingclient/api/BillingFlowParams;

    move-result-object v1

    .line 125
    iget-object v2, p0, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler$buyRemoveAds$1;->this$0:Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;->getMBillingClient()Lcom/android/billingclient/api/BillingClient;

    move-result-object v2

    iget-object v3, p0, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler$buyRemoveAds$1;->this$0:Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;

    invoke-virtual {v3}, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;->getActivity()Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    move-result-object v3

    invoke-virtual {v2, v3, v1}, Lcom/android/billingclient/api/BillingClient;->launchBillingFlow(Landroid/app/Activity;Lcom/android/billingclient/api/BillingFlowParams;)I

    .line 126
    new-instance v1, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler$buyRemoveAds$1;->this$0:Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/purchases/NavigatorBillingHandler;->getActivity()Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    move-result-object v2

    invoke-direct {v1, v2}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;-><init>(Landroid/content/Context;)V

    const-string v2, "sku"

    invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v1, v0}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendBuyAdFreeClicked(Ljava/lang/String;)V

    return-void
.end method
